﻿using System;
using System.Collections.Generic;
using System.Text;

namespace AnnieSharp
{
    public interface IRender
    {
        /// <summary>
        /// 渲染循环
        /// </summary>
        /// <param name="target"></param>
        void Draw(DisplayObject target);
        /// <summary>
        /// 初始化
        /// </summary>
        void Init();
        /// <summary>
        /// 改变尺寸
        /// </summary>
        void ReSize();
       /// <summary>
       /// 开始遮罩
       /// </summary>
       /// <param name="target"></param>
        void BeginMask(DisplayObject target);
        /// <summary>
        /// 结束遮罩
        /// </summary>
        void EndMask();
        ///// <summary>
        ///// 最上层容器对象
        ///// </summary>
        //Sprite RootContainer { get; }
        
        /// <summary>
        /// 开始渲染
        /// </summary>
        void Begin();
    }
}
